package array1.array02;
//案例1： 定义一个数组  求数组里面的最大值int[] arr = {6,7,4,3,9,5,7,8};
public class demo1 {
    public static void main(String[] args) {
        int arr[]=new int[]{6,7,4,3,9,5,7,8};
        int max=0;
        for (int i=0;i<arr.length;i++){
            if(arr[i]>max){
                max=arr[i];
            }
        }
        System.out.println(max);
    }
}
